package com.zhangzhan.gulimallcart.service;

import com.zhangzhan.gulimallcart.vos.CartItemVo;
import com.zhangzhan.gulimallcart.vos.CartVo;

import java.util.List;
import java.util.concurrent.ExecutionException;

/**
 * @author 张一恒
 * @version 1.0
 * @description:
 * @date 2024/6/29 6:28
 */
public interface CartService {
    CartItemVo addCart(Long skuId, Integer num,Boolean merge,CartItemVo tempItem) throws ExecutionException, InterruptedException;

    CartItemVo getCacheCart(Long skuId);

    CartVo cartList() throws ExecutionException, InterruptedException;


    void checked(Long skuId, Integer checkedNum);

    void onOutNum(Long skuId, Integer count);

    void delete(Long skuId);

    List<CartItemVo> getMemberCarts();

}
